#include "ToolMenu.h"


ToolMenu::ToolMenu(void)
{
}


ToolMenu::~ToolMenu(void)
{
}


ToolMenu * ToolMenu::create()
{
	ToolMenu * pRet = new ToolMenu();
	if (pRet && pRet->init())
	{
		//pRet->setTouchEnabled(true);
		//pRet->setMatrix(5, 3);
		//pRet->addNotificationCenter();
		//pRet->launch();
	}
	else
	{
		CC_SAFE_DELETE(pRet);
	}
	return pRet;
}

bool ToolMenu::init()
{
	bool bRet = false;
	do
	{
		CC_BREAK_IF(! CCLayer::init());
		m_pPauseButtonLayer = PauseButtonLayer::create();
		this->addChild(m_pPauseButtonLayer);
		m_pPauseButtonLayer->setPosition(CCPointZero);

		m_pScoreboardLayer = ScoreboardLayer::create();
		this->addChild(m_pScoreboardLayer);
		m_pScoreboardLayer->setPosition(CCPointZero);

		m_pStarBasketLayer = StarBasketLayer::create();
		this->addChild(m_pStarBasketLayer);
		m_pStarBasketLayer->setPosition(ccp(this->getContentSize().width - m_pStarBasketLayer->getContentSize().width,0));

		bRet = true;
	}
	while (0);
	return bRet;
}

